import { http } from '@/utils/http'

type Params = {
    imei: string
    center_point_coordinates_longitude: string,
    center_point_coordinates_latitude: string,
    radius: string,

}
/**
 * 保存
 * @param data 请求参数
 */
export const SaveElectronicFenceInformation = (data: Params) => {
  return http({
    method: 'POST',
    url: 'sbxx/SaveElectronicFenceInformation',
    data,
  })
}
type sbid = {
  id: string
}
/**
* 获取当前位置
*/
export const ElectronicFenceInformation = (sbid: string) => {
  return http<sbid>({
    method: 'GET',
    url: `sbxx/ElectronicFenceInformation/${sbid}`,
  })
}